//
//  LLAudioNetwork.h
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LLNWFileUploadManager.h"
#import "LLNWFileDownloadManager.h"
#import "LLAudioModel.h"
#import "LLNWFileUploadTask+LLAudioUpload.h"
#import "LLNWFileDownloadTask+LLAudioDownload.h"
#import "LLNWFileUploadManager+IMServer.h"
#import "LLAudioNetworkDelegate.h"

@interface LLAudioNetwork : NSObject

@property (nonatomic,strong)LLNWFileUploadManager *uploadManager;

@property (nonatomic,weak)id<LLAudioNetworkDelegate> delegate;

- (void)uploadAudioFile:(LLAudioModel *)audioFile;

- (void)downloadAudioFile:(LLAudioModel *)audioFile;

/* 下载完是否立即播放的参数判断 */
- (void)downloadAudioFileWithUrl:(NSString *)remoteAudioUrl withFinishDownloadPlayCheck:(BOOL)finishPlay withFileUniqueIdentifier:(NSString **)fileUniqueIdentifier;

/* 下载指定地址的音频文件 */
- (void)downloadAudioFileWithUrl:(NSString *)remoteAudioUrl withFileUniqueIdentifier:(NSString **)fileUniqueIdentifier;


@end
